home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Grand Slam 3
/
Grand Slam 3.iso
/
002
/
a2mnu020.arj
/
ANSI2MNU.DOC
next >
Wrap
Text File
|
1995-06-06
|
9KB
|
182 lines
SOFTWARE : ANSI2MNU
VERSION : 0.2
PURPOSE : Converting a ANSI file and a seperate command-file into a
RemoteAcces 2.0x MNU-file.
LIMITATIONS : Only one file at the time from hardcoded file-names.
No interpretation of the codes.
All files must be in the same directory.
WARRENTY : None, due to the fact that it is FREEWARE.
It works at my place, if that means anything to you.
SYNTAX : ANSI2MNU [path\]<file-name>
FUNCTION : This software will read two files (*.DIS & *.CMD) and will
create a typical RemoteAccess 2.0x menu file (*.MNU).
A display file (*.DIS) is a file which may have AVT, ANSI and/or
Ra-Codes in it or just plain ASCII. You may also use ^ and other
typical RA-Menu codes, as long as the rows are smaller than 135
characters.
The command-file (*.CMD) holds some basic data. This file is
bounded by a view rules:
1) Data must be seperated with a space.
2) The syntax-structure of the first line is:
[<HighlightedColor> [<PromptColor> [<Prompt>]]]
If a color is left out, 0 will be used. If prompt is left out
an empty prompt will be used.
3) Every next line must have the structure:
<MenuCommand> [<Option>]
4) Options start with a /, between the indentification and the
data a = and end with a <space> or <end-of-line>.
Example: /FGC=15 /BGC=16 (blinking white on black)
5) The last option in the list, if present, must be MIS.
<MenuCommand> may be any valid RA 2.0x menu-command-number.
0 for a simple display.
<Option> holds the data which differs from a default.
All possible flags and limitations are
supported.
Option Description Values
--------- ----------------------------
SEC Minumum Security Level 0 .. 65535
MSC Maximum Security Level 0 .. 65535
NF1..NF4 NotFlagsMask { o } 0 .. 255 BitMapped : 1..4 = A..D
Bit 0 : o------- = A1
Bit 1 : -o------ = A2
Bit 2 : --o----- = A3
Bit 3 : ---o---- = A4
Bit 4 : ----o--- = A5
Bit 5 : -----o-- = A6
Bit 6 : ------o- = A7
Bit 7 : -------o = A8
FL1..FL4 FlagsMask { x } 0 .. 255 BitMapped : 1..4 = A..D
Bit 0 : x------- = A1
Bit 1 : -x------ = A2
Bit 2 : --x----- = A3
Bit 3 : ---x---- = A4
Bit 4 : ----x--- = A5
Bit 5 : -----x-- = A6
Bit 6 : ------x- = A7
Bit 7 : -------x = A8
TLF Minimum Time Left (Minutes) 0 .. 65535
TUS Minimum Time Used (Minutes) 0 .. 65535
AGE Minimum Age 0 .. 255
TER Terminal Attribute 0 .. 255 BitMapped
Bit 0 : ANSI
Bit 1 : AVT
Bit 2 : RIP
SPE Minimum Speed (BPS) 0 .. 4228250625
MSP Maximum Speed (BPS) 0 .. 4228250625
CRE Minimum Credits Left 0 .. 4228250625
COS Option Cost 0 .. 4228250625
MNC Cost Per Minute 0 .. 4228250625
N1..N32 Node 0 .. 255 BitMapped :
N1 Bit 0 : Node 0 (Local) N2 Bit 0 : Node 8
N1 Bit 1 : Node 1 N2 Bit 1 : Node 9
N1 Bit 2 : Node 2 N2 Bit 2 : Node 10
N1 Bit 3 : Node 3 N2 Bit 3 : Node 11
N1 Bit 4 : Node 4 N2 Bit 4 : Node 12
N1 Bit 5 : Node 5 N2 Bit 5 : Node 13
N1 Bit 6 : Node 6 N2 Bit 6 : Node 14
N1 Bit 7 : Node 7 N2 Bit 7 : Node 15 etc.
G1..G32 Group 0 .. 255 BitMapped :
G1 Bit 0 : Node 0 (Local) G2 Bit 0 : Group 8
G1 Bit 1 : Group 1 G2 Bit 1 : Group 9
G1 Bit 2 : Group 2 G2 Bit 2 : Group 10
G1 Bit 3 : Group 3 G2 Bit 3 : Group 11
G1 Bit 4 : Group 4 G2 Bit 4 : Group 12
G1 Bit 5 : Group 5 G2 Bit 5 : Group 13
G1 Bit 6 : Group 6 G2 Bit 6 : Group 14
G1 Bit 7 : Group 7 G2 Bit 7 : Group 15 etc.
ST1..ST7 StartTime (Minutes) 0 .. 1439 : 1..7 = Sunday - Saterday
ET1..ET7 StopTime (Minutes) 0 .. 1439 : 1..7 = Sunday - Saterday
HOT HotKey #1..#255
MIS MiscData StringLength <= 135 Characters
FGC Foreground 0 .. 15 : Formatted : ----Hfff
H for Highlighted
fff for 0 Black / Dark Gray
1 Blue / Light Blue
2 Green / Light Green
3 Cyan / Light Cyan
4 Red / Orange
5 Magenta / Light Magenta
6 Brown / Yellow
7 Gray / White
BGC Background 0 .. 15 : Formatted : ----Bfff
H for Blink
fff for 0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 Gray
EXAMPLES : In these 2 examples the ^ is a literal ^ and not a sign to
indecate a control-code as you will find in many other documents.
test.DIS:
---------------- TEST MENU ----------------
^A^) Option A ^B^) Option B
-------------------------------------------
^-^) Return Time Left : ^~^
-------------------------------------------
test.CMD
15 0 Keuze :
1 /FGC=13 /HOT=A /MIS=Menua /ns
1 /FGC=14 /HOT=B /MIS=menub
1 /FGC=13 /HOT=- /MIS=main
0 /FGC=14
0 /FGC=13
This was an example of a simple non-synchronised menu.
Next example will show the same menu, but synchronized, just
like it has been decompiled with MNU2ANSI.
test.DIS:
---------------- TEST MENU ----------------
^A^) Option A ;
^B^) Option B
-------------------------------------------
^-^) Return Time Left : ^~^
-------------------------------------------
test.CMD
15 0 Keuze :
0 /FGC=13
1 /FGC=14 /HOT=A /MIS=Menua /ns
1 /FGC=14 /HOT=B /MIS=menub
0 /FGC=13
1 /FGC=14 /HOT=- /MIS=main
0 /FGC=13
HISTORY : Initial release: version 0.1
■ Never hatched or make any effort to pass it through a network.
Second release: version 0.2
■ First official release.
AUTHEUR : Contact me for bug-reports and sugestions:
SnailMail: Gert de Vente
Hakfort 352
1102 LA Amsterdam
Netherlands
NetMail: 2:280/805 @ fidonet.org
73:7310/10 @ ranet.org
206:206/6 @ disaster.org
COPYRIGHTED : All mentioned software (ANSI2MNU, MNU2ANSI) and this document
may not be altered without my knowledge.
Go$oƒt (Gert de Vente) is a member of VNSP: 950521/01/M